package com.zhengshang.api.mapper;

import com.zhengshang.api.domain.AppGoodsChannel;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 电商频道Mapper接口
 *
 * @author zhengshang
 * @date 2022-04-16
 */
public interface AppGoodsChannelMapper {
    /**
     * 查询电商频道
     *
     * @param goodsChannelId 电商频道ID
     * @return 电商频道
     */
    public AppGoodsChannel selectAppGoodsChannelById(Long goodsChannelId);

    /**
     * 查询电商频道列表
     *
     * @param appGoodsChannel 电商频道
     * @return 电商频道集合
     */
    public List<AppGoodsChannel> selectAppGoodsChannelList(AppGoodsChannel appGoodsChannel);

    public List<Map> selectAppGoodsChannelList1(Map params);

    /**
     * 新增电商频道
     *
     * @param appGoodsChannel 电商频道
     * @return 结果
     */
    public int insertAppGoodsChannel(AppGoodsChannel appGoodsChannel);

    /**
     * 修改电商频道
     *
     * @param appGoodsChannel 电商频道
     * @return 结果
     */
    public int updateAppGoodsChannel(AppGoodsChannel appGoodsChannel);

    /**
     * 删除电商频道
     *
     * @param goodsChannelId 电商频道ID
     * @return 结果
     */
    public int deleteAppGoodsChannelById(Long goodsChannelId);

    /**
     * 批量删除电商频道
     *
     * @param goodsChannelIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteAppGoodsChannelByIds(Long[] goodsChannelIds);


    public List<AppGoodsChannel> queryAppGoodsChannelList(@Param("navigateId") Long navigateId, @Param("channelType") Integer channelType);
}
